##############################
# STATE REACH AND DEVELOPMENT // PSRM // Replication
#
# Packages
#
##############################


## List of packages
pcks <- c("ggplot2", "lfe", "viridisLite",  "plyr",
          "rgeos", "rgdal", "raster", "cshapes","grid",
          "igraph", "gtools", "fields", "car","ggridges",
          "snow", "foreach", "parallel","doParallel", "viridis",
          "tidyverse", "Hmisc", "countrycode", "stargazer", "geosphere",
          "deldir", "sf")

## Install if not there
for(p in pcks){
  if(!p %in% installed.packages()[,"Package"]){
    print(p)
    install.packages(p)
  }
}
rm(pcks)

## Load packages
library(lfe)
options(lfe.threads = 10)
library(viridisLite)
library(plyr)
library(igraph)
library(gtools)
library(fields)
library(snow)
library(parallel)
library(doParallel)
library(foreach)
library(tidyverse)
library(ggplot2)
library(Hmisc)
library(countrycode)
library(stargazer)
library(viridis)
library(car)
library(rgeos)
library(rgdal)
library(raster)
library(cshapes)
library(ggridges)
library(grid)
library(geosphere)
library(deldir)
library(sf)
